<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('待检测列表列表')"/>
</head>
<body class="pear-container">
<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action="">
            <div class="layui-form-item">
                <label class="layui-form-label">名称</label>
                <div class="layui-input-inline">
                    <input type="text" name="searchText" placeholder="" class="layui-input">
                </div>
                <button class="pear-btn pear-btn-md pear-btn-primary" lay-submit lay-filter="scaletab-query">
                    <i class="layui-icon layui-icon-search"></i>
                   	 查询
                </button>
                <button type="reset" class="pear-btn pear-btn-md">
                    <i class="layui-icon layui-icon-refresh"></i>
					重置
                </button>
            </div>
        </form>
    </div>
</div>
<div class="layui-card">
    <div class="layui-card-body">
        <table id="scaletab-table" lay-filter="scaletab-table"></table>
    </div>
</div>
</body>



<script type="text/html" id="scaletab-bar">
    <button sa:hasPermission="gen:scaletab:edit" class="pear-btn pear-btn-primary pear-btn-sm" lay-event="edit" title="砝码检测"><i class="layui-icon layui-icon-edit"></i> 开始检测
    </button>

</script>



<script type="text/html" id="standardWeightCorrected-type">
	

	{{#if (d.standardWeightCorrected == { "v1":"10", "v2":"10", "v3":"8","v4": "-1"}) { }}
    <span class="layui-badge layui-bg-default-blue">10KG砝码预定参数</span>

	{{#if (d.standardWeightCorrected == { "v1":"10", "v2":"10", "v3":"8","v4": "-1"}) { }}
    <span class="layui-badge layui-bg-default-blue">20KG砝码预设值</span>
    {{# } }}
</script>


<script type="text/javascript" th:inline="javascript">
	var standardWeightCorrected_list = [[${@dict.getType('json')}]];
    var mpe1_list = [[${@dict.getType('E2_F1_F2_M1')}]];
	
	window.selectDictLabel=function(datas, value) {
		var actions = [];
	    $.each(datas, function(index, dict) {
	        if (dict.dictValue == ('' + value)) {
	        	var listClass = ("default"== dict.listClass) ? "" : "badge badge-" + dict.listClass;
	        	actions.push(sprintf("<span class='%s'>%s</span>", listClass, dict.dictLabel));
	            return false;
	        }
	    });
	    return actions.join('');
	}
	window.sprintf=function (str) {
	    var args = arguments, flag = true, i = 1;
	    str = str.replace(/%s/g, function () {
	        var arg = args[i++];
	        if (typeof arg === 'undefined') {
	            flag = false;
	            return '';
	        }
	        return arg;
	    });
	    return flag ? str : '';
	}
</script>	
	


<th:block th:include="include :: footer"/>
<script th:src="@{/static/scaletab/list.js}"></script>
</html>